package com.study.practice.config;

import org.apache.activemq.command.ActiveMQQueue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.context.annotation.PropertySource;

import javax.jms.Queue;

/**
 * 配置javaBean 到Spring容器中
 */
@Configuration
@PropertySource("classpath:properties/service.properties")
public class JavaBeanConfig {

    @Bean
    public Queue queue() {
        return new ActiveMQQueue("ActiveMQQueue");
    }

}
